package com.ktdaddy.pojo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "kernel_role_rel")
public class KernelRoleRel {
    @Id
    private Integer id;

    /**
     * 角色Id
     */
    @Column(name = "role_id")
    private Integer roleId;

    /**
     * 角色编码
     */
    @Column(name = "role_code")
    private String roleCode;

    /**
     * 用户核心id
     */
    @Column(name = "kernel_id")
    private Integer kernelId;

    /**
     * 用户名
     */
    @Column(name = "kernel_name")
    private String kernelName;

    @Column(name = "time_created")
    private Date timeCreated;

    @Column(name = "time_modified")
    private Date timeModified;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取角色Id
     *
     * @return role_id - 角色Id
     */
    public Integer getRoleId() {
        return roleId;
    }

    /**
     * 设置角色Id
     *
     * @param roleId 角色Id
     */
    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    /**
     * 获取角色编码
     *
     * @return role_code - 角色编码
     */
    public String getRoleCode() {
        return roleCode;
    }

    /**
     * 设置角色编码
     *
     * @param roleCode 角色编码
     */
    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    /**
     * 获取用户核心id
     *
     * @return kernel_id - 用户核心id
     */
    public Integer getKernelId() {
        return kernelId;
    }

    /**
     * 设置用户核心id
     *
     * @param kernelId 用户核心id
     */
    public void setKernelId(Integer kernelId) {
        this.kernelId = kernelId;
    }

    /**
     * 获取用户名
     *
     * @return kernel_name - 用户名
     */
    public String getKernelName() {
        return kernelName;
    }

    /**
     * 设置用户名
     *
     * @param kernelName 用户名
     */
    public void setKernelName(String kernelName) {
        this.kernelName = kernelName;
    }

    /**
     * @return time_created
     */
    public Date getTimeCreated() {
        return timeCreated;
    }

    /**
     * @param timeCreated
     */
    public void setTimeCreated(Date timeCreated) {
        this.timeCreated = timeCreated;
    }

    /**
     * @return time_modified
     */
    public Date getTimeModified() {
        return timeModified;
    }

    /**
     * @param timeModified
     */
    public void setTimeModified(Date timeModified) {
        this.timeModified = timeModified;
    }
}